package com.atguigu.gmall.common.config.thread.annotation;


import com.atguigu.gmall.common.config.thread.AppThreadPoolConfig;
import com.atguigu.gmall.common.config.thread.AppThreadPoolProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableConfigurationProperties(AppThreadPoolProperties.class) //开启AppThreadPoolProperties和配置文件的属性绑定功能
@Import(AppThreadPoolConfig.class)
public @interface EnableCustomThreadPool {

}
